package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Procurement;
import com.woniuxy.mapper.ProcurementMapper;
import com.woniuxy.service.ProcurementService;

@Service
public class ProcurementServiceImpl implements ProcurementService{
	@Autowired
	private ProcurementMapper procurementMapper;

	@Override
	public List<Procurement> findProcurement() {
		
		return procurementMapper.findProcurement();
	}

	@Override
	public Procurement findProcurementByOrderno(String orderno) {
		
		return procurementMapper.findProcurementByOrderno(orderno);
	}

	@Override
	public int insertProcurement(Procurement procurement) {
		int i=procurementMapper.insertProcurement(procurement);
		return i;
	}

	@Override
	public int updateProcurementByOrderno(Procurement procurement) {
		int i=procurementMapper.updateProcurementByOrderno(procurement);
		return i;
	}

	@Override
	public int delProcurementByOrderno(String orderno) {
		int i=procurementMapper.delProcurementByOrderno(orderno);
		return i;
	}

	@Override
	public int changeStatus(Procurement procurement) {
		int i=procurementMapper.changeStatus(procurement);
		return i;
	}

	@Override
	public int changeStatusbyor(Procurement procurement) {
		int i=procurementMapper.changeStatusbyor(procurement);
		return i;
	}

	@Override
	public int changeStatusbyno(Procurement procurement) {
		int i=procurementMapper.changeStatusbyno(procurement);
		return i;
	}
	
	
}
